package com.gerfmarquez.nymph.ui.seekbar;

import android.content.Context;
import android.view.ViewGroup.LayoutParams;
import android.widget.LinearLayout;

import com.gerfmarquez.nymph.ui.listeners.SeekBarOnOnTouchListener;

public class SpawnNoteView {
	
	public static LinearLayout spawnNoteView( Context context) {
		LayoutParams layoutParams = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.FILL_PARENT);
		SeekBarOnOnTouchListener seekBarOnTouchListener = new SeekBarOnOnTouchListener(context);
		
		LinearLayout musicNoteLinearVerticalLayout = ViewInflater.getMusicNoteLinearVerticalLayout(context);
        musicNoteLinearVerticalLayout.setLayoutParams(layoutParams);
        VerticalSeekBar vSeekBar = (VerticalSeekBar)musicNoteLinearVerticalLayout.findViewById(R.id.noteLevel);
        
        vSeekBar.setOnTouchListener(seekBarOnTouchListener);
        return musicNoteLinearVerticalLayout;
	}

}
